home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / procssng / ccs / ccs-11tl.lha / lbl / sun / tifflib / makefile.src < prev    next >
Encoding:
Makefile  |  1993-08-16  |  3.9 KB  |  139 lines

  1. #
  2. # Tag Image File Format Library
  3. #
  4. # Copyright (c) 1988, 1989, 1990, 1991, 1992 Sam Leffler
  5. # Copyright (c) 1991, 1992 Silicon Graphics, Inc.
  6. # Permission to use, copy, modify, distribute, and sell this software and 
  7. # its documentation for any purpose is hereby granted without fee, provided
  8. # that (i) the above copyright notices and this permission notice appear in
  9. # all copies of the software and related documentation, and (ii) the names of
  10. # Sam Leffler and Silicon Graphics may not be used in any advertising or
  11. # publicity relating to the software without the specific, prior written
  12. # permission of Stanford and Silicon Graphics.
  13. # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  14. # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  15. # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  16. # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  17. # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  18. # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  19. # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
  20. # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
  21. # OF THIS SOFTWARE.
  22. #
  23. IPATH=    -I.
  24. #
  25. # Library-wide configuration defines:
  26. #    MMAP_SUPPORT    add support for memory mapping read-only files
  27. #    COLORIMETRY_SUPPORT add support for 6.0 colorimetry tags
  28. #    JPEG_SUPPORT    add support for 6.0 JPEG tags & JPEG algorithms
  29. #    YCBCR_SUPPORT    add support for 6.0 YCbCr tags
  30. #    CMYK_SUPPORT    add support for 6.0 CMYK tags
  31. #
  32. # Compression configuration defines:
  33. #    CCITT_SUPPORT    add support for CCITT Group 3 & 4 algorithms
  34. #    PACKBITS_SUPPORT    add support for Macintosh PackBits algorithm
  35. #    LZW_SUPPORT    add support for LZW algorithm
  36. #    THUNDER_SUPPORT    add support for ThunderScan 4-bit RLE algorithm
  37. #    NEXT_SUPPORT    add support for NeXT 2-bit RLE algorithm
  38. #    JPEG_SUPPORT    add support for JPEG DCT algorithm
  39. #
  40. # Note that if you change the library-wide configuration, you'll
  41. # need to manual force a full rebuild.  Changing the configuration
  42. # of which compression algorithms are included in the library is
  43. # automatically handled (i.e. tif_compress.o has a dependency on
  44. # the Makefile).
  45. #
  46. CONF_COMPRESSION=\
  47.     -DPACKBITS_SUPPORT \
  48.     -DLZW_SUPPORT \
  49.     -DCCITT_SUPPORT \
  50.     -DTHUNDER_SUPPORT  \
  51.     -DNEXT_SUPPORT  \
  52.     ${NULL}
  53. CONF_LIBRARY=\
  54.     -DUSE_VARARGS=1 \
  55.     -DUSE_PROTOTYPES=0 \
  56.     -DHAVE_IEEEFP=1 \
  57.     -DCOLORIMETRY_SUPPORT \
  58.     -DYCBCR_SUPPORT \
  59.     ${NULL}
  60. CFLAGS=    -O ${IPATH} ${CONF_LIBRARY}
  61. #
  62. INCS=    tiff.h tiffio.h
  63.  
  64. OBJS=    tif_fax3.o \
  65.     tif_fax4.o \
  66.     tif_aux.o \
  67.     tif_ccittrle.o \
  68.     tif_close.o \
  69.     tif_compat.o \
  70.     tif_compress.o \
  71.     tif_dir.o \
  72.     tif_dirinfo.o \
  73.     tif_dirread.o \
  74.     tif_dirwrite.o \
  75.     tif_dumpmode.o \
  76.     tif_error.o \
  77.     tif_getimage.o \
  78.     tif_jpeg.o \
  79.     tif_flush.o \
  80.     tif_lzw.o \
  81.     tif_next.o \
  82.     tif_open.o \
  83.     tif_packbits.o \
  84.     tif_print.o \
  85.     tif_read.o \
  86.     tif_strip.o \
  87.     tif_swab.o \
  88.     tif_thunder.o \
  89.     tif_tile.o \
  90.     tif_version.o \
  91.     tif_warning.o \
  92.     tif_write.o \
  93.     ${NULL}
  94. LIBNAME =    libtiff.a
  95.  
  96. install: $(LIBNAME)
  97.  
  98. $(LIBNAME): $(OBJS)
  99.     @rm -f $(LIBNAME)
  100.     ar cr $(LIBNAME) `$(LORDER) $(OBJS) | $(TSORT)`;
  101.     mv $(LIBNAME) $(LIBDIR)
  102.     $(RANLIB) $(LIBDIR)/$(LIBNAME)
  103.     @touch $(LIBNAME)
  104.  
  105. ${OBJS}: tiffio.h tiff.h tiffcompat.h tiffioP.h
  106. tif_compress.o: tif_compress.c Makefile
  107.     ${CC} -c ${CFLAGS} ${CONF_COMPRESSION} tif_compress.c
  108. tif_fax3.o: tif_fax3.c g3states.h t4.h tif_fax3.h
  109.  
  110. g3states.h: mkg3states.c t4.h
  111.     ${CC} -o mkg3states ${CFLAGS} mkg3states.c $(OTHERLIB2)
  112.     ./mkg3states > g3states.h
  113.  
  114.  
  115. installh: ${INCS}
  116.     -for i in ${INCS}; do \
  117.         h=`basename $$i`; \
  118.         cmp -s $$i ${DESTDIR}/include/$$h || \
  119.             ${INSTALL} -c -m 444 $$i ${DESTDIR}/include/$$h; \
  120.     done
  121.  
  122. clean:
  123.     rm -f ${LIBNAME} ${OBJS} core a.out mkg3states g3states.h
  124. clean-all:    clean_all
  125.  
  126. pristine:
  127.     rm -f ${LIBNAME} ${OBJS} core a.out mkg3states g3states.h \
  128.         $(LIBDIR)/$(LIBNAME)
  129.  
  130. man:
  131.  
  132. doc:
  133.  
  134. tags:    ${SRCS}
  135.     ${CTAGS} ${SRCS}
  136.